package cg.cmm.gateway.props;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 网关配置
 *
 * @author yingxli
 */
@Data
@ConfigurationProperties("cg.gateway.ignore.url")
@ConditionalOnProperty("cg.gateway.ignore.url")
@Component
public class AuthProperties {
    /**
     * 放行API集合
     */
    private List<String> skipUrl = new ArrayList<>();
}
